package com.ls.lserp.modules.produce.dao;





import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.material.entity.SlopworkInbound;
import com.ls.lserp.modules.order.entity.BigcargoOrder;
import com.ls.lserp.modules.order.entity.ChangeMaterial;
import com.ls.lserp.modules.order.entity.OrderMateriel;
import com.ls.lserp.modules.order.entity.SizeColorQuantity;
import com.ls.lserp.modules.order.entity.StyleFeedBack;
import com.ls.lserp.modules.produce.entity.ProduceLicense;
import com.ls.lserp.modules.produce.entity.ProduceNotice;
import com.ls.lserp.modules.produce.entity.ProducePlan;
@MyBatisDao
public interface ProduceLicenseDao extends CrudDao<ProduceLicense>{
	
	//获取班组
	public List<ProduceLicense> findGroupList();
	//修改生产计划状态
	public int updateStatus(ProduceNotice produceNotice);
	//插入计划通知单关联表信息
	public int insertPlanNotice(ProduceNotice produceNotice);
	//获取订单集
	public List<ProduceLicense> findIndentNOList(Long id);
	//获取一条生产计划信息
	public ProducePlan getPlan(Long id);
	
	//获取一条订单相关信息
	public BigcargoOrder getIndentInfo(ProduceLicense produceLicense);
	//获取客户集
	public List<ProduceLicense> findCustomerList();
	//获取面辅料集
	public List<SizeColorQuantity> findSizeColor(ProduceLicense produceLicense);
	//获取面辅料集
	public List<ChangeMaterial> findMaterial(ProduceLicense produceLicense);
	//获取意见集
	public List<StyleFeedBack> findFeedBack(ProduceLicense produceLicense);
	//更新数据（定制合同）
	public int updateCus(ProduceLicense produceLicense);
	//更新订单数量
	public int updateOrderQuantity(ProduceLicense produceLicense);
	// 获取生产制单完成进度和生产状态信息
	public ProduceLicense getProStatusInfo(SlopworkInbound slopworkInbound);
	// 更新生产制单生产状态
	public int updateProduceStatus(ProduceLicense produceLicense);
}
